import { Article, ArticleAction } from "../actions/article";
type ArticleType = Article[]
const initValue: ArticleType = []

// TODO 返回AricleType没有写 不知道会发什么什么
export default function article(state = initValue, action: ArticleAction) {
  switch (action.type) {
    case 'article/getArticleList':
      return action.payload
    default:
      return state
  }
}